Skip to content

More push/pop support#2260

Merged
aheejin merged 2 commits intoWebAssembly:masterfrom
aheejin:exnref_pop
Jul 25, 2019
Merged

More push/pop support#2260
aheejin merged 2 commits intoWebAssembly:masterfrom
aheejin:exnref_pop

Conversation

@aheejin
Copy link
Copy Markdown
Member

@aheejin aheejin commented Jul 25, 2019

This adds

  • push/pop support for other types: v128 and exnref
  • push/pop support for binaryen.js
    Because binaryen.js follows Binaryen's AST structure, without pop in
    binaryen.js, EH instructions cannot be represented in binaryen.js.

This adds
- `push`/`pop` support for other types: v128 and exnref
- `push`/`pop` support for binaryen.js
  Because binaryen.js follows Binaryen's AST structure, without `pop` in
  binaryen.js, EH instructions cannot be represented in binaryen.js.
@aheejin aheejin requested review from kripken and tlively July 25, 2019 00:50
Comment thread src/binaryen-c.cpp Outdated
}
BinaryenExpressionRef BinaryenPush(BinaryenModuleRef module,
BinaryenExpressionRef value) {
auto* ret = Builder(*((Module*)module)).makePush((Expression*)value);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is an extra set of parens around (Module*)module.

Copy link
Copy Markdown
Member Author

@aheejin aheejin Jul 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. By the way I actually copy-pasted from other functions, so maybe we can remove all of them. Anyway here I'll remove them.

@aheejin aheejin merged commit 443c006 into WebAssembly:master Jul 25, 2019
@aheejin aheejin deleted the exnref_pop branch July 25, 2019 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants